#ifndef UTILS_H
#define UTILS_H

#include <QObject>

#define SAFE_DELETE(p) \
    { \
        if (p) { \
            delete p; \
            p = Q_NULLPTR; \
        } \
    }

#define SAFE_DELETE_ARRAY(p) \
    { \
        if (p) { \
            delete[] p; \
            p = Q_NULLPTR; \
        } \
    }

#define SAFE_RELEASE(p) \
    { \
        if (p) { \
            p->Release(); \
            p = Q_NULLPTR; \
        } \
    }

class Utils
{
public:
    static QStringList sortString(QStringList list);

private:

};

#endif // UTILS_H
